package com.winning.pmph.utils;

import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

import java.util.concurrent.ThreadPoolExecutor;

public class ExecutorServiceFactory {
    private ExecutorServiceFactory(){};
    public static ThreadPoolExecutor getInstance(){
        return ApplicationContextUtil.getBean(ThreadPoolTaskExecutor.class).getThreadPoolExecutor();
    }
}
